package com.github.niefy.modules.openapi.resource.dto.in;

import com.github.niefy.common.utils.Json;
import lombok.Data;
import me.chanjar.weixin.mp.bean.template.WxMpTemplateData;

import java.util.List;

/**
 * 批量代发送模板消息
 * */
@Data
public class TemplateMsgOpen_001 {

    private List<msgInfo> msgList;

    @Data
    public static class msgInfo {
        private String templateId;
        private String url;
        private String toUser;
        /**
         * 模板消息字段填充
         */
        private List<WxMpTemplateData> data;
    }

    @Override
    public String toString() {
        return Json.toJsonString(this);
    }
}
